static def releaseTime() {
    return new Date().format("yyyyMMdd", TimeZone.getTimeZone("GMT+8:00"))
}

static def buildTime() {
    return new Date().format("yyyyMMdd_HHmmss", TimeZone.getTimeZone("GMT+8:00"))
}

buildscript {
    apply from: 'versions.gradle'
    addRepos(repositories, false)
}

allprojects {
    addRepos(repositories, true)

    tasks.withType(Javadoc) {
        //有中文注释
        options.encoding = "UTF-8"
    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
}
